//
//  MineRequest.h
//  Cycling
//
//  Created by 迟国强 on 2023/3/28.
//

#import "BaseRequest.h"
#import "UerCenterModel.h"
#import "DeviceModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface MineRequest : BaseRequest

/// 个人中心首页
/// @param eid eid description
/// @param resultBlock resultBlock description
+ (void)getUserInfoMessageWithEid:(NSString *)eid result:(void(^)(UerCenterModel *model))resultBlock;

/// 更新头像接口
+ (void)uploadavatarWithFile:(NSData *)file type:(NSString *)type result:(void(^)(NSDictionary *ret))resultBlock;
/// 更新图片接口
+ (void)uploadImageWithFile:(NSData *)file type:(NSString *)type result:(void(^)(NSDictionary *ret))resultBlock;
/// 更新车辆图片
+ (void)uploadCarImageWithFile:(NSString *)file carId:(NSString *)carId result:(void(^)(BOOL ret))resultBlock;
/// 用户设备列表
/// @param page page description
/// @param resultBlock resultBlock description
+ (void)getUserDevices:(NSInteger)page result:(void(^)(NSArray<DeviceModel *> *list))resultBlock;

/// 申请人试骑
/// @param resultBlock resultBlock description
+ (void)getApplyTryrideResult:(void(^)(NSDictionary *ret))resultBlock;

/// 拒绝试骑
/// @param resultBlock resultBlock description
+ (void)refuseRideWithId:(NSString *)Id Result:(void(^)(BOOL ret))resultBlock;

/// 结束试骑
/// @param resultBlock resultBlock description
+ (void)endRideWithId:(NSString *)Id Result:(void(^)(BOOL ret))resultBlock;

/// 同意试骑
/// @param resultBlock resultBlock description
+ (void)acceptRideWithId:(NSString *)Id Result:(void(^)(BOOL ret))resultBlock;

/// 评价试试骑行
/// @param Id Id description
/// @param content content description
/// @param resultBlock resultBlock description
+ (void)commentTryrideWithId:(NSString *)Id content:(NSString *)content Result:(void(^)(BOOL ret))resultBlock;

/// 修改资料
+ (void)changeUserInfoWithTryride:(NSString *)tryride Result:(void(^)(BOOL ret))resultBlock;

// 修改用户资料，是否有车
+ (void)changeUserInfoWithHaveBike:(BOOL)haveBike result:(void(^)(BOOL ret))resultBlock;

// 发送设备pushToken
+ (void)postDevicePushTokenWithTokenString:(NSString *)tokenString;

@end

NS_ASSUME_NONNULL_END
